<div style="margin:10px">

<div class="div_form">
    <h2>List of category</h2>
<table style="width: 60%;">
<tr>
    <th>ID</th>
    <th>Category name</th>

    <th>Action</th>
</tr>
<?foreach($structure as $c):?>
<?
   $id=$c['id'];
   $sep=str_repeat("&nbsp;&nbsp;&nbsp;",($c['level']-1))."|__";
?>

<tr>
    <td><?=$c['id']?></td>
    <td><?=$sep.$categories[$c['id']]['name']?></td>

    <td><a href="index.php?m=administration&a=edit_category&category_id=<?=$c['id']?>">Edit</a> | Delete </td>
</tr>
<?endforeach?>
</table>

</div>
</div>
<style>
    table{
        width: 100%;
        margin: 20px;
        
    }
td
{
padding:3px;
}
</style>